Page({
  data: {
    toView: 'red'
  },
  upper: function (e) {
    console.log(e)
  },
  lower: function (e) {
    console.log(e)
  },
  scroll: function (e) {
    console.log(e.detail )
  },
  toBlue: function (e) {
    this.setData({
      toView: 'blue'
    })
  }
})